package com.zxdemo.jpa.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.zxdemo.jpa.model.User;

public interface UserRepository extends CrudRepository<User, Long>{
					@Query("from User where userName=:un")
					public User findByuserName(@Param("un")String UserName);
			

}
